<?php
/**
 * Created by PhpStorm.
 * User: 76683
 * Date: 2018/7/15
 * Time: 20:44
 */

namespace app\sd\model;

use think\Model;
class WeUsers extends Model
{
    protected $autoWriteTimestamp = true;

    public static function userList($map,$order){
        $data = self::where($map)->order($order)->select();
        return empty($data)?[]:collection($data)->toArray();
    }
}